'use strict';
var bestCharge = require(best_charge.js)

describe('best-charge',function(){
    var a = ["ITEM0001 x 1", "ITEM0013 x 2", "ITEM0022 x 1"];
    var b = 25
    it("总计25元",function(){
        var result = bestCharge(a);
        expect(result).toEqual(b)
    })
    
})